<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert.jsp</title>
<style>
#guest_main {
	margin:0 auto;
	margin-top:20px;
}
</style>
<script>
function btn_list(){
	location.href="index2.jsp?inc_center=./guest/list.jsp";
}
</script>
</head>
<body>
	<div id="guest_main">
		<form name="frm" method="post" action="index2.jsp?inc_center=./guest/insert_result.jsp">
			아이디 : <input type="text" value="" name="mid" placeholder="아이디" style="width:100px;"><br/>
			제&emsp;목 : <input type="text" value="" placeholder="제목" name="subject" style="width:200px;"><br/><br/>
			내&emsp;용
			<br/><br/>
			
			<textarea rows="5" name="content" cols="60" rows="4"></textarea><br/><br/>
			
			<!-- submit 타입으로 '저장'버튼을 누르면 form 값이 action 경로로 들어간다. -->
			<input type="submit" value="저장" id="btnOk" style="width:50px;">
			<input type="button" value="목록" id="btnList" onclick="btn_list()" style="width:50px;">
		</form>
	</div>

</body>
</html>